import { Component, OnInit, Input } from '@angular/core';
import { NavParams, ModalController } from '@ionic/angular';

@Component({
    selector: 'prompt-box',
    templateUrl: 'prompt-box.html',
    styleUrls: ['prompt-box.scss']
})
export class PrompBoxtModal implements OnInit {
    @Input() isCheck;
    @Input() checkInfo;
    constructor(public navParams: NavParams,
        public modalCtrl: ModalController) {
    }

    ngOnInit() {
    }

    ok() {
        this.modalCtrl.dismiss(true);
    }

    cancel = function () {
        this.modalCtrl.dismiss(false);
    };
}
